const Router = require("koa-router");

const { update, getData } = require("../controller/message");
const router = new Router();
router.post("/message", update);
router.get("/message", getData);
// router.post('/add',validator,create)
// router.post('/update/:id',update)
// // router.post('/remove/:id',remove)  // 硬删除
// router.post('/remove/on/:id',restore)
// router.post('/remove/off/:id',destore)
// router.get('/',findAll)
module.exports = router;
